const arr = [['qing', 'item', ['上海', ['aaa', ['ddd']]]], ['北京']]

const brr = arr.flat(Infinity)
console.log(brr, 'brr')